const express = require('express')
const router = express.Router()
//设备红绿灯详情
router.get('/getStatisticsDetail', (req, res) => {
    const data = require('./detail.json')
    res.json(data)
})
//设备红绿灯列表
router.get('/getStatisticsPage', (req, res) => {
    let err = true
    let data;
    if (err) {
        data = require('./errtable.json')
    } else {
        data = require('./table.json')
    }
    res.json(data)
})
module.exports = router